<?php

use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Douyin\IndexController;
use App\Http\Controllers\Douyin\GoodsController;
use App\Http\Controllers\Douyin\OrderController;
use App\Http\Controllers\Douyin\ShopController;
use App\Http\Controllers\Douyin\AuthorizationController;
use App\Http\Controllers\Douyin\MyCentreController;
use App\Http\Controllers\Douyin\HelpController;
use App\Http\Controllers\Douyin\UploadController;
use App\Http\Controllers\Douyin\ActivityController;
use App\Http\Controllers\Douyin\AuthenticController;
use App\Http\Controllers\Douyin\NoticeController;
use App\Http\Controllers\Douyin\ComplaintSuggestController;
use App\Http\Controllers\Douyin\BankController;


Route::middleware('cors')->group(function () {
    Route::group([
        'prefix' => 'Douyin',
    ], function () {
        Route::post('/upload', [UploadController::class, 'upload']); //文件上传接口
        Route::get('/Index/index', [IndexController::class, 'index']);//首页模块配置数据
        Route::get('/Index/index2', [IndexController::class, 'index2']);//首页模块配置数据--新版220914
        Route::get('/Index/keywords', [IndexController::class, 'keywords']);//首页模块配置数据

        Route::get('/Index/categoryList', [IndexController::class, 'listCategoryList']);//首页推荐分类
        Route::get('/Index/categoryList2', [IndexController::class, 'listCategoryList2']);//首页推荐分类
        Route::get('/Index/indexList', [IndexController::class, 'indexList']);//首页推荐商品列表

        Route::get('/Goods/getGoodsInfo', [GoodsController::class, 'getGoodsInfo']);//商品详情
        Route::get('/Goods/getGoodsPrices', [GoodsController::class, 'getGoodsPrices']);//商品详情价格
        Route::get('/Goods/getGoodsParameter', [GoodsController::class, 'getGoodsParameter']);//获取商品参数
        Route::get('/Goods/getGoodsSetmeal', [GoodsController::class, 'getGoodsSetmeal']);//获取套餐信息
        Route::get('/Goods/getCategory', [GoodsController::class, 'getCategory']);//获取商品分类
        Route::post('/Goods/getGoodsList', [GoodsController::class, 'getGoodsList']);//获取商品列表
        Route::post('/Goods/getGoodsCode', [GoodsController::class, 'getGoodsCode']);//获取商品优惠券列表

        Route::post('/Order/confirmOrder', [OrderController::class, 'confirmOrder']);//确认订单
        Route::post('/Order/getOrderLeaseTerm', [OrderController::class, 'getOrderLeaseTerm']);//获取订单租期详情
        Route::post('/Order/makeOrder', [OrderController::class, 'makeOrder']);//生成订单



        Route::get('/Order/getOrderCount', [OrderController::class, 'getOrderCount']);//获取订单数量
        Route::post('/Order/orderList', [OrderController::class, 'orderList']);//订单列表
        Route::get('/Order/orderInfo', [OrderController::class, 'orderInfo']);//订单详情
        Route::get('/Order/getOrderLease', [OrderController::class, 'getOrderLease']);//账单详情
        Route::post('/Order/orderCancel', [OrderController::class, 'orderCancel']);//未支付取消订单
        Route::post('/Order/orderSubmit', [OrderController::class, 'orderSubmit']);//未签约继续提交订单
        Route::get('/Order/getOrderRefundData', [OrderController::class, 'getOrderRefundData']);//获取申请退款页面信息
        Route::post('/Order/applyOrderRefund', [OrderController::class, 'applyOrderRefund']);//已支付待发货订单申请退款
        Route::post('/Order/cancelOrderRefund', [OrderController::class, 'cancelOrderRefund']);//撤销退款申请
        Route::get('/Order/checkOrderExpress', [OrderController::class, 'checkOrderExpress']);//查看物流
        Route::post('/Order/orderConfirmReceiving', [OrderController::class, 'orderConfirmReceiving']);//确认收货
        Route::get('/Order/getOrderBuyoutData', [OrderController::class, 'getOrderBuyoutData']);//获取买断详情
        Route::post('/Order/orderBuyoutPay', [OrderController::class, 'orderBuyoutPay']);//买断支付
        Route::get('/Order/orderTransSnapshot', [OrderController::class, 'orderTransSnapshot']);//买断支付
        Route::get('/Order/getOrderReturnAddress', [OrderController::class, 'getOrderReturnAddress']);//获取订单归还地址
        Route::post('/Order/orderReturnAddExpress', [OrderController::class, 'orderReturnAddExpress']);//订单归还添加快递信息
        Route::post('/Order/orderApplyReturn', [OrderController::class, 'orderApplyReturn']);//申请提前归还
        Route::post('/Order/orderReturnCancel', [OrderController::class, 'orderReturnCancel']);//撤销申请提前归还
        Route::get('/Order/getReturnExpressList', [OrderController::class, 'getReturnExpressList']);//获取归还物流公司信息
        Route::get('/Order/getReturnExpressData', [OrderController::class, 'getReturnExpressData']);//获取归还物流信息
        Route::get('/Order/getRenewalGoodsStatus', [OrderController::class, 'getRenewalGoodsStatus']);//获取续租商品状态
        Route::post('/Order/orderAmountApply', [OrderController::class, 'orderAmountApply']);//申请减免押金
        Route::post('/Order/getMessageCode', [OrderController::class, 'getMessageCode']);//消息推送授权信息
        Route::post('/Order/getHelp', [OrderController::class, 'getHelp']);//获取订单协议
        Route::get('/Order/toAlipay', [OrderController::class, 'toAlipay']);//跳转支付宝订单
        Route::post('/Order/createContract', [OrderController::class, 'createContract']);//创建合同
        Route::post('/Order/executeUrl', [OrderController::class, 'executeUrl']);//获取签署地址
        Route::post('/Order/setSignImg', [OrderController::class, 'setSignImg']);//上传签署图片
        Route::post('/Order/getSignImg', [OrderController::class, 'getSignImg']);//公证用户提交签署
        Route::get('/Order/getSignData', [OrderController::class, 'getSignData']);//获取签署数据

        Route::get('/Shop/getShopBanner', [ShopController::class, 'getShopBanner']);//获取店铺轮播图
        Route::get('/Shop/getShopCityLocation', [ShopController::class, 'getShopCityLocation']);//获取商户是否开启城市定位
        Route::get('/Shop/getShopCategory', [ShopController::class, 'getShopCategory']);//获取店铺分类
        Route::post('/Shop/getShopIndex', [ShopController::class, 'getShopIndex']);//获取商户店铺首页商品信息
        Route::post('/Shop/getShopGoods', [ShopController::class, 'getShopGoods']);//根据分类id获取商户商品
        Route::get('/Shop/getTelePhone', [ShopController::class, 'getTelePhone']);//获取客服电话
        Route::post('/Shop/supplierApply', [ShopController::class, 'supplierApply']);//供应商申请
        Route::get('/Shop/getAreas', [ShopController::class, 'getAreas']);//获取城市列表
        Route::get('/Shop/getSupplierData', [ShopController::class, 'getSupplierData']);//供应商申请
        Route::post('/Shop/shopApply', [ShopController::class, 'shopApply']); //商铺申请推广

        Route::post('/Auth/grantAuthPhone', [AuthorizationController::class, 'grantAuthPhone']);//手机号授权
        Route::post('/Auth/grantAuth', [AuthorizationController::class, 'grantAuth']);//授权

        //关于我们、帮助中心
        Route::get('/Help/getAboutUsType', [HelpController::class, 'getAboutUsType']); //获取关于我们分类
        Route::get('/Help/getAboutUs', [HelpController::class, 'getAboutUs']);//获取关于我们
        Route::get('/Help/getCommonProblemType', [HelpController::class, 'getCommonProblemType']);//获取常见问题分类
        Route::get('/Help/getCommonProblemById', [HelpController::class, 'getCommonProblemById']);//获取常见问题
        Route::get('/Help/getAgreement', [HelpController::class, 'getAgreement']);//获取服务协议
        Route::get('/Help/getPrivacy', [HelpController::class, 'getPrivacy']);//获取服务协议
        Route::get('/Help/getPersonAgreement', [HelpController::class, 'getPersonAgreement']);//获取个人征信授权书
        Route::get('/Help/getFinancing', [HelpController::class, 'getFinancing']);//获取融资租赁委托担保合同
        Route::get('/Help/getUserAgreement', [HelpController::class, 'getUserAgreement']);//获取用户授权协议
        Route::get('/Help/getCert', [HelpController::class, 'getCert']);//获取数字证书协议


        //投诉建议
        Route::get('/ComplaintSuggest/getSuggestType', [ComplaintSuggestController::class, 'getSuggestType']);//获取投诉类型
        Route::post('/ComplaintSuggest/submitComplaintSuggest', [ComplaintSuggestController::class, 'submitComplaintSuggest']);//提交投诉建议
        Route::post('/ComplaintSuggest/getSuggest', [ComplaintSuggestController::class, 'getSuggest']);//根据类型获取投诉建议
        Route::post('/ComplaintSuggest/cancel', [ComplaintSuggestController::class, 'cancel']);//撤销
        Route::post('/ComplaintSuggest/unresolved', [ComplaintSuggestController::class, 'unresolved']);//未解决
        Route::post('/ComplaintSuggest/resolved', [ComplaintSuggestController::class, 'resolved']);//已解决
        Route::get('/ComplaintSuggest/lookProgress', [ComplaintSuggestController::class, 'lookProgress']);//查看进度
        Route::get('/ComplaintSuggest/overtime', [ComplaintSuggestController::class, 'overtime']);//投诉超时定时任务

        //统计落地页访问人数
        Route::post('/Help/getWebCounts1', [HelpController::class, 'getWebCounts1']);//抖音

        //个人中心
        Route::get('/Centre/indexList', [MyCentreController::class, 'indexList']);//首页推荐商品列表


        //会员活动券
        Route::post('/Activity/setMemberActivity', [ActivityController::class, 'setMemberActivity']);//领券
        Route::post('/Activity/getActivity', [ActivityController::class, 'getActivity']);//展示券
        Route::post('/Activity/getActivityGoods', [ActivityController::class, 'getActivityGoods']);//展示券商品

        //实人认证
        Route::post('/Auth/realPersonAuth', [AuthenticController::class, 'realPersonAuth']);//唤起实人认证
        Route::post('/Auth/faceAuthNotice', [AuthenticController::class, 'faceAuthNotice']);//实人认证成功回调
        Route::post('/Auth/getPersonAuth', [AuthenticController::class, 'getPersonAuth']);//获取实名认证信息
        Route::post('/Auth/getSchemeUrl', [AuthenticController::class, 'getSchemeUrl']);//微信获取scheme链接
        Route::post('/Auth/userInfo', [AuthenticController::class, 'userInfo']);//个人信息
        Route::post('/Auth/sendCode', [AuthenticController::class, 'sendCode']);//唤起实人认证
        Route::post('/Auth/bindPhone', [AuthenticController::class, 'bindPhone']);//唤起实人认证


        Route::any('/Notice/faceAuthNotice', [NoticeController::class, 'faceAuthNotice']);//实人认证回调-e签宝

        //回调

        Route::any('/Notice/esignNotify', [NoticeController::class, 'esignNotify']);//e签宝合同签署回调
        Route::any('/Notice/wechatPayNotify', [NoticeController::class, 'wechatPayNotify']);//微信支付回调


        /**********************银行卡协议支付**********************/
        Route::post('/Bank/readySign', [BankController::class, 'readySign']);//银行卡协议支付
        Route::post('/Bank/confirmSigning', [BankController::class, 'confirmSigning']);//银行卡协议支付
        Route::post('/Bank/payOrder', [BankController::class, 'payOrder']);//银行卡协议支付
        Route::post('/Bank/querySign', [BankController::class, 'querySign']);//银行卡协议支付

        Route::get('/Bank/bankList', [BankController::class, 'bankList']);//银行列表
        Route::get('/Bank/myBankCard', [BankController::class, 'myBankCard']);//银行列表
        Route::get('/Bank/getYiFuBaoAgree', [BankController::class, 'getYiFuBaoAgree']);//获取数字证书协议

        Route::post('/Bank/readyPay', [BankController::class, 'readyPay']);//支付发送验证码
        Route::post('/Bank/confirmPay', [BankController::class, 'confirmPay']);//确认支付

        Route::post('/Bank/submitLeasePartial', [BankController::class, 'submitLeasePartial']);//逾期部分还款
        Route::post('/Bank/leasePartialDetail', [BankController::class, 'leasePartialDetail']);//部分还款详情



    });

});

